package com.itheima.redbaby.dao.domain;

import com.itheima.redbaby.dao.DBHelper;
import com.itheima.redbaby.dao.annotation.Column;
import com.itheima.redbaby.dao.annotation.Id;
import com.itheima.redbaby.dao.annotation.TableName;

@TableName(DBHelper.TABLE_CARTTABLE)
public class CartTable {
	@Id(autoincrement=false)
	@Column(key=DBHelper.TABLE_CART_COL_ID)
	int product_id;
	@Column(key=DBHelper.TABLE_CART_COL_NAME)
	String name;
	@Column(key=DBHelper.TABLE_CART_COL_URL)
	String picpath;
	@Column(key=DBHelper.TABLE_CART_COL_price)
	float price;
	@Column(key=DBHelper.TABLE_CART_COL_score)
	float score;
	@Column(key=DBHelper.TABLE_CART_COL_buylimit)
	int buylimit;
	@Column(key=DBHelper.TABLE_CART_COL_isgift)
	int isgift;
	@Column(key=DBHelper.TABLE_CART_COL_productprom)
	int productprom;
	/*@Column(key=DBHelper.TABLE_COL_totalCount)
	int totalCount;
	@Column(key=DBHelper.TABLE_COL_totalPrice)
	int totalPrice;
	@Column(key=DBHelper.TABLE_COL_totalPoint)
	int totalPoint;*/
	
	public String getName() {
		return name;
	}
	public int getProduct_id() {
		return product_id;
	}
	public void setProduct_id(int product_id) {
		this.product_id = product_id;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPicpath() {
		return picpath;
	}
	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}
	
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
	public float getScore() {
		return score;
	}
	public void setScore(float score) {
		this.score = score;
	}
	public int getIsgift() {
		return isgift;
	}
	public int getBuylimit() {
		return buylimit;
	}
	public void setBuylimit(int buylimit) {
		this.buylimit = buylimit;
	}
	public int isIsgift() {
		return isgift;
	}
	public void setIsgift(int isgift) {
		this.isgift = isgift;
	}
	public int getProductprom() {
		return productprom;
	}
	public void setProductprom(int productprom) {
		this.productprom = productprom;
	}
	
}
